package com.yanqu.road.entity.log.foxcard;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.foxcard.FoxBaseCard;
import com.yanqu.road.entity.activity.foxcard.FoxHandCard;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_foxcard_sale", desc = "黑狐入侵卖牌", autoSave = true, dataUpload = true, eventName = "red_blacksell",uploadCk = true)
public class LogFoxCardSale extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id", dataAttribute = "red_blacklev")
    private int stageId;
    @FieldTypeAnnotation(desc = "回合数", dataAttribute = "red_blackid")
    private int round;
    @FieldTypeAnnotation(desc = "卖掉的卡", dataAttribute = "red_blacksellid", saveJson = true)
    private FoxBaseCard saleCard;
    @FieldTypeAnnotation(desc = "金币数量", dataAttribute = "red_blackcoin")
    private int gold;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFoxCardSale(int activityId, long userId, int stageId, int round, FoxBaseCard saleCard, int gold) {
        this.activityId = activityId;
        this.userId = userId;
        this.stageId = stageId;
        this.round = round;
        this.saleCard = saleCard;
        this.gold = gold;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
